@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './reset.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}
/*******分页******/
.pagePublic .pagination-container{
  padding: 3px 16px !important;
  margin-top:15px;
  text-align: right;
}


/*******el-form表单******/
/*输入框el-input*/
.formPublic .el-input{
  width: 236px;
}
/*label*/
.formPublic .el-form-item--medium .el-form-item__label{
  width: 100px;
}
/*******el-form表单******/


/******页面table*****/
//页面table样式
//table表头背景色，字体颜色
.table_box .el-table .el-table__header thead th {
  background: #6d7f93 !important;
  color: #fff;
}
//el-table每行的字体颜色
.table_box .el-table--enable-row-transition .el-table__body td {
  color: #243743;
}
//table奇数行背景色
.table_box .el-table .el-table__body tr:nth-child(odd),
tr:nth-child(odd) td,
tr:nth-child(odd) {
  background: #e2e5e9;
}
//table偶数行背景色
.table_box .el-table .el-table__body tr:nth-child(even),
tr:nth-child(even) td,
tr:nth-child(even) {
  background: #f1f1f1;
}
//el-table高亮行背景与字体颜色
.table_box .el-table--enable-row-hover .el-table__body tr:hover > td {
  background: #28b78d;
  color: #fff;
  cursor: pointer;
}
//el-table点中行背景与字体颜色
.table_box .el-table__body tr.current-row > td {
  background: #28b78d;
  color: #fff;
}
//el-table操作按钮字体颜色
.table_box .el-table .el-button--text {
  color: #243743;
  &:hover {
    color: #fff;
  }
}
//el-table禁用字体颜色
.table_box .el-button.is-disabled,
.table_box .el-button.is-disabled:hover,
.table_box .el-button.is-disabled:focus {
  color: #c0c4cc;
}
.table_box .el-table--group::after,
.table_box .el-table--border::after,
 .table_box .el-table::before {
  background: none;
}
.table_box .el-table--group::after,
.table_box .el-table--border::after,
.table_box .el-table::before {
  background: none;
}
.table_box .el-table__fixed::before,
.table_box .el-table__fixed-right::before {
  background: none;
}
//table里面的操作按钮
.table_box .el-button--mini{//按钮的内外边距整改
  padding: 4px 15px;
}

/*********上传upload****88*/
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409EFF;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}
.avatar {
  width: 178px;
  height: 178px;
  display: block;
}
.imagehua {
  position: relative;
  width: 120px;
  height: 120px;
  float: left;
  &:hover .imghua {
    display: block;
  }
  img {
    width: 100% !important;
    height: 100% !important;
  }
  .imghua {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    top: 0;
    display: none;
    i {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
}
.imagehuaican {
  float: left;
  width: 120px;
  height: 120px;
  position: relative;
  &::before {
    position: absolute;
    left: 50%;
    height: 50%;
    transform: translate(-50%, -50%);
  }
}

/*el-dialog*/
.dialogPublic {
  .el-dialog__header {
    text-align: center;
  }
  .dialog-footer{
    text-align: center;
  }
  /*文件上传*/
  .el-upload-list__item-name{
    margin-left: 90px;
  }
}
//文件上传提示
.el-upload__tip{
  text-align: right;
}

